package com.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.SMShareParameterDomainMapper;
import com.pojo.SMShareParameterDomain;

@Service
public class ShowService {
	
	@Autowired
	private SMShareParameterDomain smShareParameterDomain;
	
	@Autowired
	private SMShareParameterDomainMapper smShareParameterDomainMapper;
	
	public SMShareParameterDomain getShare(Integer paramId) {
		
		return smShareParameterDomainMapper.selectByPrimaryKey(paramId);
	}
	
	public List<SMShareParameterDomain> getShareList() {
		
		return smShareParameterDomainMapper.selectByExample(null);
	}
	
}
